﻿using Common.Attributes;
using Domain.Entities.Identity;
using System.ComponentModel;

namespace Application.Features.Users.DTOs;

[Map(typeof(Menu))]
public class UserMenuOutput
{
    /// <summary>
    /// 唯一标识
    /// </summary>
    [Description("唯一标识")]
    public  long? Id { get; set; }

    /// <summary>
    /// 唯一标识
    /// </summary>
    [Description("菜单唯一标识")]
    public long? MenuId
    {
        get { return Id; }
    }

    /// <summary>
    /// 父级节点
    /// </summary>
    [Description("父级节点")]
    public  long? ParentId { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [Description("名称")]
    public  string? Name { get; set; }

    /// <summary>
    /// 路径
    /// </summary>
    [Description("路径")]
    public  string? Path { get; set; }

    /// <summary>
    /// 重定向
    /// </summary>
    [Description("重定向")]
    public  string? Redirect { get; set; }

    /// <summary>
    /// 菜单高亮
    /// </summary>
    [Description("菜单高亮")]
    public  string? Active { get; set; }

    /// <summary>
    /// 视图
    /// </summary>
    [Description("视图")]
    public  string? Component { get; set; }

    /// <summary>
    /// 标识
    /// </summary>
    [Description("标识")]
    public  string? Code { get; set; }

    /// <summary>
    /// 接口地址
    /// </summary>
    [Description("接口地址")]
    public  string? Url { get; set; }

    /// <summary>
    /// 接口请求方式
    /// </summary>
    [Description("接口请求方式")]
    public  string? HttpMethods { get; set; }
}